<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <%@include file="/view/resource.jsp" %>
  </head>
  <body class="easyui-layout">
  	 <!-- Search panel start -->
 	 <div class="ui-search-panel" region="north" style="height: 80px;" title="Search box" data-options="striped: false,collapsible:false,iconCls:'icon-search',border:false" >   
 	 <form id="searchForm">
 	 	<p class="ui-fields">
            <label class="ui-label">订单编号:</label> 
            <input name="number" class="easyui-box ui-text" style="width:100px;">
            <label>请款日期 - 开始日期:</label>  
            <input name="beginDate" class="easyui-datebox">
            <label>结束日期:</label>  
            <input name="endDate" class="easyui-datebox">
            <label>订单状态:</label> 
            <select name="state" class="easyui-combobox">
                <option></option>
            	<option value="0">未交货</option>
            	<option value="1">已交货</option>
            </select>
        </p>
        <a id="btn-search" class="easyui-linkbutton" iconCls="icon-search">搜索</a>
      </form>  
     </div> 
     <!--  Search panel end -->
     <!-- DataList  -->
	 <div region="center" border="false" >
     	<table id="data-list" ></table>
     </div>
     
     <!-- Edit Form -->
     <div id="edit-win" class="easyui-dialog" title="编辑" data-options="closed:true,iconCls:'icon-save',modal:true" style="width:400px;height:300px;">  
     	<form id="editForm" class="ui-form" method="post">  
     		 <input class="hidden" type="text" name="id">
     		 <input class="hidden" name="deleted">
     		 <div class="ui-edit">
	     	   <div class="ftitle">订单信息</div>  
	     	   <div class="fitem">  
		               <label>订单编号:</label>  
		               <input class="easyui-validatebox" type="text" name="number" data-options="required:true">
		           </div>  
		           <div class="fitem">  
	                   <label>交货日期:</label>  
	                   <input id="dd" type="text" name="deadline" class="easyui-datebox" data-options="required:true">
	               </div>
	               <div class="fitem">  
	                   <label>数量:</label>  
	                   <input type="text" name="quantity" class="easyui-numberbox" data-options="min:0">
	               </div>
	               <div class="fitem">  
	                   <label>单价:</label>  
	                   <input type="text" name="price" class="easyui-numberbox" data-options="min:0,precision:2">
	               </div>
	               <div class="fitem">  
	                   <label>总额:</label>  
	                   <input type="text" name="amount" class="easyui-numberbox" data-options="min:0,precision:2">
	               </div>
	               <div class="fitem">  
	               <label>商家类型:</label>
	               <select id="cc5" class="easyui-combobox">
	               		<option value="1" selected="selected">供应商</option>
	               		<option value="2">客户</option>
	               </select>
	           	   </div>    
		           <div class="fitem">  
		               <label>商家:</label>  
		               <input id="cc1" class="easyui-combobox" name="merchantId" data-options="valueField:'id',
		               textField:'name',url:'../merchant/loadMerchantList.do?type=1'">
	           	   </div>
	           	   <div class="fitem">  
		               <label>产品编号:</label>  
		               <input class="easyui-validatebox" type="text" name="productCode" data-options="required:true,validType:'length[1,20]'">
		           </div>
		           <div class="fitem">  
		               <label>产品名称:</label>  
		               <input class="easyui-validatebox" type="text" name="productName" data-options="required:true,validType:'length[1,20]'">
		           </div>
		           <div class="fitem">  
		               <label>产品规格:</label>  
		               <input class="easyui-validatebox" type="text" name="productStandard" data-options="required:true,validType:'length[1,20]'">
		           </div>   
		            <div class="fitem">  
					   <label>产品颜色:</label> 
					   <input class="easyui-validatebox" type="text" name="productColor" data-options="required:true,validType:'length[1,20]'"> 
		           </div>
		           <div class="fitem">  
		               <label>型体:</label>  
		               <input class="easyui-validatebox" type="text" name="model"  data-options="required:true"></input>
		           </div>  
		           <div class="fitem">  
		               <label>联系人:</label>  
		               <input class="easyui-validatebox" type="text" name="linkman"  data-options="required:true"></input>
		           </div>  
		           <div class="fitem">  
	               		<label>订单状态:</label>  
	               		<select class="easyui-combobox" name="state" data-options="required:true">
                    	<option value="0" selected="selected">未交货</option>
                    	<option value="1">已交货</option>
                   		</select>
	               </div>
		           <div class="fitem">  
		               <label>备注:</label>  
		               <textarea class="easyui-validatebox" data-options="required:false,length:[0,100]" name="remark"></textarea>
		           </div>  
	         </div>
     	</form>
  	 </div>
  	 
  	 <!-- View Form -->
     <div id="view-win" class="easyui-dialog" title="查看" data-options="closed:true,iconCls:'icon-search',modal:true" style="width:400px;height:300px;">  
     	<form id="viewForm" class="ui-form" method="post">  
     		 <input class="hidden" type="text" name="id">
     		 <input class="hidden" name="deleted">
     		 <div class="ui-edit">
	     	   <div class="ftitle">订单信息</div>  
	     	   <div class="fitem">  
		               <label>订单编号:</label>  
		               <input class="easyui-validatebox" type="text" name="number" data-options="required:true" disabled="disabled">
		           </div>  
		           <div class="fitem">  
	                   <label>交货日期:</label>  
	                   <input id="dd" type="text" name="deadline" class="easyui-datebox" data-options="required:true" disabled="disabled">
	               </div>
	               <div class="fitem">  
	                   <label>数量:</label>  
	                   <input type="text" name="quantity" class="easyui-numberbox" data-options="min:0" disabled="disabled">
	               </div>
	               <div class="fitem">  
	                   <label>单价:</label>  
	                   <input type="text" name="price" class="easyui-numberbox" data-options="min:0,precision:2" disabled="disabled">
	               </div>
	               <div class="fitem">  
	                   <label>总额:</label>  
	                   <input type="text" name="amount" class="easyui-numberbox" data-options="min:0,precision:2" disabled="disabled">
	               </div>
	               <div class="fitem">  
	               <label>商家类型:</label>
	               <select id="cc6" class="easyui-combobox" disabled="disabled">
	               		<option value="1" selected="selected">供应商</option>
	               		<option value="2">客户</option>
	               </select>
	           	   </div>    
		           <div class="fitem">  
		               <label>商家:</label>  
		               <input id="cc1" class="easyui-combobox" name="merchantId" data-options="valueField:'id',
		               textField:'name',url:'../merchant/loadMerchantList.do?type=1'" disabled="disabled">
	           	   </div>
		           <div class="fitem">  
		               <label>产品编号:</label>  
		               <input class="easyui-validatebox" type="text" name="productCode" data-options="required:true,validType:'length[1,20]'" disabled="disabled">
		           </div>
		           <div class="fitem">  
		               <label>产品名称:</label>  
		               <input class="easyui-validatebox" type="text" name="productName" data-options="required:true,validType:'length[1,20]'" disabled="disabled">
		           </div>
		           <div class="fitem">  
		               <label>产品规格:</label>  
		               <input class="easyui-validatebox" type="text" name="productStandard" data-options="required:true,validType:'length[1,20]'" disabled="disabled">
		           </div>   
		            <div class="fitem">  
					   <label>产品颜色:</label> 
					   <input class="easyui-validatebox" type="text" name="productColor" data-options="required:true,validType:'length[1,20]'" disabled="disabled"> 
		           </div>
		           <div class="fitem">  
		               <label>型体:</label>  
		               <input class="easyui-validatebox" type="text" name="model"  data-options="required:true" disabled="disabled"></input>
		           </div>  
		           <div class="fitem">  
		               <label>联系人:</label>  
		               <input type="text" name="linkman" disabled="disabled"></input>
		           </div>  
		           <div class="fitem">  
	               		<label>订单状态:</label>  
	               		<select class="easyui-combobox" name="state" data-options="required:true" disabled="disabled">
                    	<option value="0" selected="selected">未交货</option>
                    	<option value="1">已交货</option>
                   		</select>
	               </div>
		           <div class="fitem">  
		               <label>备注:</label>  
		               <textarea class="easyui-validatebox" data-options="required:false,length:[0,100]" name="remark" disabled="disabled"></textarea>
		           </div>  
	         </div>
     	</form>
  	 </div>
  <script type="text/javascript" src="${msUrl}/js/ux/order_info/order_info.js"></script>
  </body>
</html>
